package httpService

import (
	"github.com/labstack/echo/v4"
	"pm/db"
	"pm/model"
)

func ServerList (c echo.Context)error{
	var serverList []model.Client
	db.NewDb().Model(&model.Client{}).Find(&serverList)
	return c.JSON(200, map[string]interface{}{
		"status": 0,
		"data":serverList,
	})
}